function WlSteerRowVOJs(){
   this.id
   ; this.voiture
   ; this.place
   ; this.task
   ; this.time
   ; this.state
   ; this.miles
   ; this.reporter
   ; this.booker
   ; this.bookTime
   ; this.remark
   ; this.placeName

}

function WlSteerRowVOtoArray_fun(ulvo,edit){
            var querydata=new Array();
            var items = new Array();
            var ul=new Array();
            var ulo="";
            var le="";
            var d="",t;
            var arraytag="0";//isArray
            if(ulvo!=null){
              if(ulvo.length==undefined){
                 ul[0]=ulvo;
                 arraytag="1";
                 le=1;
              }else{
                 ul=ulvo;
                 le=ul.length;
              }        
              if(edit==false){
                    for(var i = 0; i < le; i++){		
                        items = new Array();
                        ulo=ul[i];
                        items[0] = false;
                        items[1] = ulo["ns:id"];
                        items[2] = ulo["ns:placeName"];//
                        items[3] = ulo["ns:state"];//
                        t=ulo["ns:miles"];if(t!=null&&t!=undefined){items[4] =  t['ns:upNumber'];}
                        items[5] = ulo["ns:remark"];//
                        t=ulo["ns:time"];if(t!=null&&t!=undefined){items[6] = t['ns:upDate'];}
                        t=ulo["ns:bookTime"];if(t!=null&&t!=undefined){items[7] = t['ns:upDate'];}
                         items[8] = ulo["ns:task"];
                         items[9] = ulo["ns:voiture"];
                         items[10] = ulo["ns:place"];
                         items[11] = ulo["ns:booker"];
                         items[12] = ulo["ns:reporter"];
                      if(arraytag=="0"){
                        querydata[i]=items;
                      }else{
                        querydata=items;
                      }
                    }
                  }else{//edit==true
                    for(var i = 0; i < le; i++){		
                        items = new Array();
                        ulo=ul[i];
                        items[0] = false;
                        items[1] = ulo["ns:id"];
                        items[2] = ulo["ns:placeName"];//
                        items[3] = ulo["ns:state"];//
                        t=ulo["ns:miles"];if(t!=null&&t!=undefined){items[4] =  t['ns:upNumber'];}
                        items[5] = ulo["ns:remark"];//
                        t=ulo["ns:time"];if(t!=null&&t!=undefined){
                        d=dojo.date.locale.parse(new String( t['ns:upDate']),{datePattern: "yyyy-MM-dd",timePattern:"HH:mm" });}
                        items[6] = d;
                        items[7] = d;                        
                        t=ulo["ns:bookTime"];if(t!=null&&t!=undefined){
                        d=dojo.date.locale.parse(new String( t['ns:upDate']),{datePattern: "yyyy-MM-dd",timePattern:"HH:mm" });}
                        items[8] = d;
                        items[9] = d;                        
                         items[10] = ulo["ns:task"];
                         items[11] = ulo["ns:voiture"];
                         items[12] = ulo["ns:place"];
                         items[13] = ulo["ns:booker"];
                         items[14] = ulo["ns:reporter"];
                      if(arraytag=="0"){
                        querydata[i]=items;
                      }else{
                        querydata=items;
                      }
                    }
                  } 
            }//!=null                     
            return querydata;
}
 